import React, { Component } from 'react';

import { BrowserRouter, Route, Routes } from 'react-router-dom'; //路由

// import Home from "./pages/Home"; //路由入口
// import Login from "./pages/Login"; //登录
// import Visitorindex from "./pages/views/index"; //首页
// import VisitorList from './pages/views/VisitorList'; //
// import Silingsi from "./pages/si ling si";

import Router from './pages/router/Router'; //集中式路由

const App = () => {
  return (
    <>
      <BrowserRouter>
        {/* 集中式路由 */}
        <Router></Router>

        {/* <Routes> */}

        {/* 登录路由 */}
        {/* <Route path='/' element={<Login />}></Route> */}

        {/* 左侧路由 */}
        {/* <Route path='/index' element={<Home />}> 组件入口文件 */}
        {/* <Route path='Visitorindex' element={<Visitorindex />}></Route>子路由 */}
        {/* <Route path='visitorList' element={<VisitorList />}></Route> */}
        {/* </Route> */}

        {/* 404页面 */}
        {/* <Route path='*' element={<Silingsi />}></Route> */}

        {/* </Routes> */}
      </BrowserRouter>
    </>
  );
};

export default App;
